<!--
 * @Author: mant123 11608966+mant123@user.noreply.gitee.com
 * @Date: 2023-01-04 19:08:05
 * @LastEditors: Mant 11608966+mant123@user.noreply.gitee.com
 * @LastEditTime: 2023-01-07 20:26:57
 * @FilePath: \vue-admin-template\src\views\dashboard\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="dashboard-container">
    <!-- 用户信息 -->
    <div class="box-top">
      <div class="box-img">
        <img class="usimg" src="../../assets/bigUserHeader.png" alt="" />
      </div>
      <div class="box-img">
        <p class="box-one">早安，{{ name }},祝你开心每一天!</p>
        <p>{{ name }}|传值博客</p>
      </div>
    </div>
    <div class="box-bot">
      <div class="box-zindex">
        <div class="box-ztop">
          <p class="box-f">工作日历</p>
          <el-calendar v-model="value"> </el-calendar>
          <hr />
        </div>
        <div class="box-zbottomt">
          <p class="box-f">工作日历</p>
        </div>
      </div>
      <div class="box-yindex">
        <div class="box-ztop">
          <div class="box-ytop">
            <p class="box-f">流程申请</p>
            <p class="box-t">
              <button class="btn">加班离职</button>
              <button class="btn">请假调休</button>
              <button class="btn">审批列表</button>
            </p>
            <p class="box-t">
              <button class="btn">我的信息</button>
            </p>
          </div>
        </div>
        <div class="box-yone">
          <p class="box-f">绩效指数</p>
          <p class="box-t">个人工作绩效表</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "首页",
  data() {
    return {
      value: new Date(),
    };
  },
  computed: {
    ...mapGetters(["name"]),
  },

  methods: {
    xuan() {
      console.log(tish.name);
    },
  },
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.box-top {
  display: flex;
  width: 100%;
  // padding-bottom:  20px;
  // border: 1px solid red;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
  .usimg {
    width: 100px;
  }
  .box-one {
    font-size: 20px;
  }
  .box-img {
    padding: 10px;
  }
}

.box-f {
  font-size: 20px;
}
.box-bot {
  width: 100%;
  height: 100%;
  // padding-bottom:  20px;
  margin-top: 20px;
  //  border: 1px solid black;
  z-index: 999;
  display: flex;
  //  flex: 1;
  // flex-direction: column;
  justify-content: space-between;
  // 左侧
  .box-zindex {
    width: 49%;
    height: 100px;
    //  background: blue;
    // box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.1);
    .box-ztop {
      padding: 10px;
      box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
    }
    .box-zbottomt {
      margin-top: 20px;
      padding: 10px;
      box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
    }
  }
  // 右侧
  .box-yindex {
    width: 49%;
    height: 100px;
    // background: yellow;
    .box-ytop {
      padding: 10px;
      box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
      .btn {
        padding: 5px;
        margin-left: 5px;
      }
    }
    .box-yone {
      margin-top: 20px;
      padding: 10px;
      box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.1);
      .btn {
        padding: 5px;
        margin-left: 5px;
      }
    }
  }
}
</style>
